import request from "../axios/requestMethod.ts";
import type {AxiosResponse} from "axios";


export const useGetMapDataApi = (): Promise<AxiosResponse<any, any>> =>
    request({
        method: "POST",
        url: "/map"
    })


export const useGetRadarDataApi = (): Promise<AxiosResponse<any, any>> =>
    request({
        method: "POST",
        url: "/radar"
    })


export const useGetBarDataApi = (): Promise<AxiosResponse<any, any>> =>
    request({
        method: "POST",
        url: "/bar"
    })


export const useGetScatterDataApi = (): Promise<AxiosResponse<any, any>> =>
    request({
        method: "POST",
        url: "/scatter"
    })

export const useGetWordCloudDataApi = (): Promise<AxiosResponse<any, any>> =>
    request({
        method: "POST",
        url: "/wordCloud"
    })